home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpconnect / xpcexception.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  99 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM xpcexception.idl
  3.  */
  4.  
  5. #ifndef __gen_xpcexception_h__
  6. #define __gen_xpcexception_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIException_h__
  14. #include "nsIException.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsIXPCException */
  23. #define NS_IXPCEXCEPTION_IID_STR "b2a34010-3983-11d3-9888-006008962422"
  24.  
  25. #define NS_IXPCEXCEPTION_IID \
  26.   {0xb2a34010, 0x3983, 0x11d3, \
  27.     { 0x98, 0x88, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 }}
  28.  
  29. class NS_NO_VTABLE nsIXPCException : public nsIException {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXPCEXCEPTION_IID)
  33.  
  34.   /* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIStackFrame aLocation, in nsISupports aData, in nsIException aInner); */
  35.   NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIXPCEXCEPTION \
  41.   NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIXPCEXCEPTION(_to) \
  45.   NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) { return _to Initialize(aMessage, aResult, aName, aLocation, aData, aInner); } 
  46.  
  47. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  48. #define NS_FORWARD_SAFE_NSIXPCEXCEPTION(_to) \
  49.   NS_IMETHOD Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner) { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(aMessage, aResult, aName, aLocation, aData, aInner); } 
  50.  
  51. #if 0
  52. /* Use the code below as a template for the implementation class for this interface. */
  53.  
  54. /* Header file */
  55. class nsXPCException : public nsIXPCException
  56. {
  57. public:
  58.   NS_DECL_ISUPPORTS
  59.   NS_DECL_NSIXPCEXCEPTION
  60.  
  61.   nsXPCException();
  62.  
  63. private:
  64.   ~nsXPCException();
  65.  
  66. protected:
  67.   /* additional members */
  68. };
  69.  
  70. /* Implementation file */
  71. NS_IMPL_ISUPPORTS1(nsXPCException, nsIXPCException)
  72.  
  73. nsXPCException::nsXPCException()
  74. {
  75.   /* member initializers and constructor code */
  76. }
  77.  
  78. nsXPCException::~nsXPCException()
  79. {
  80.   /* destructor code */
  81. }
  82.  
  83. /* void initialize (in string aMessage, in nsresult aResult, in string aName, in nsIStackFrame aLocation, in nsISupports aData, in nsIException aInner); */
  84. NS_IMETHODIMP nsXPCException::Initialize(const char *aMessage, nsresult aResult, const char *aName, nsIStackFrame *aLocation, nsISupports *aData, nsIException *aInner)
  85. {
  86.     return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88.  
  89. /* End of implementation class template. */
  90. #endif
  91.  
  92. /********************************************************/
  93. // {5632BF70-51EC-11d3-9896-006008962422}
  94. #define NS_XPCEXCEPTION_CID  \
  95. { 0x5632bf70, 0x51ec, 0x11d3, \
  96.     { 0x98, 0x96, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } }
  97.  
  98. #endif /* __gen_xpcexception_h__ */
  99.